home *** CD-ROM | disk | FTP | other *** search
/ Total Network Tools 2002 / NextStepPublishing-TotalNetworkTools2002-Win95.iso / Archive / Offline Browsing / HTTrack.exe / data1.cab / Sources / src / htsdefines.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-04-28  |  2.9 KB  |  75 lines

  1. /* ------------------------------------------------------------ */
  2. /*
  3. HTTrack Website Copier, Offline Browser for Windows and Unix
  4. Copyright (C) Xavier Roche and other contributors
  5.  
  6. This program is free software; you can redistribute it and/or
  7. modify it under the terms of the GNU General Public License
  8. as published by the Free Software Foundation; either version 2
  9. of the License, or any later version.
  10.  
  11. This program is distributed in the hope that it will be useful,
  12. but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14. GNU General Public License for more details.
  15.  
  16. You should have received a copy of the GNU General Public License
  17. along with this program; if not, write to the Free Software
  18. Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
  19.  
  20.  
  21. Important notes:
  22.  
  23. - We hereby ask people using this source NOT to use it in purpose of grabbing
  24. emails addresses, or collecting any other private information on persons.
  25. This would disgrace our work, and spoil the many hours we spent on it.
  26.  
  27.  
  28. Please visit our Website: http://www.httrack.com
  29. */
  30.  
  31.  
  32. /* ------------------------------------------------------------ */
  33. /* File: Some defines for httrack.c and others                  */
  34. /* Author: Xavier Roche                                         */
  35. /* ------------------------------------------------------------ */
  36.  
  37. // Fichier librairie .h
  38. #ifndef HTS_DEFINES_DEFH
  39. #define HTS_DEFINES_DEFH
  40.  
  41. // demande d'interaction avec le shell
  42. #if HTS_ANALYSTE!=2
  43. #define HT_PRINT(A) printf("%s",A);
  44. #define HT_REQUEST_START /*printf("º\n");*/
  45. #define HT_REQUEST_END   /*printf("º\n");*/
  46. #define HTT_REQUEST_START /*if (httrack.shell) printf("º\n");*/
  47. #define HTT_REQUEST_END   /*if (httrack.shell) printf("º\n");*/
  48. #define HTS_REQUEST_START if (opt->shell) { HT_REQUEST_START }
  49. #define HTS_REQUEST_END   if (opt->shell) { HT_REQUEST_END }
  50. #define HTS_PANIC_PRINTF(S) printf("%s\n",S);
  51. #else
  52. extern char HTbuff[2048];
  53. #define HT_PRINT(A) strcat(HTbuff,A);
  54. #define HT_REQUEST_START HTbuff[0]='\0';
  55. #define HT_REQUEST_END 
  56. #define HTT_REQUEST_START HTbuff[0]='\0';
  57. #define HTT_REQUEST_END 
  58. #define HTS_REQUEST_START HTbuff[0]='\0';
  59. #define HTS_REQUEST_END 
  60. #define HTS_PANIC_PRINTF(S) strcpy(_hts_errmsg,S);
  61. void  hts_htmlcheck_init();
  62. void  hts_htmlcheck_uninit();
  63. int   hts_htmlcheck_start();
  64. int   hts_htmlcheck_end();
  65. int   hts_htmlcheck(char* html,int len,char* url_adresse,char* url_fichier);
  66. char* hts_htmlcheck_query(char* question);
  67. char* hts_htmlcheck_query2(char* question);
  68. char* hts_htmlcheck_query3(char* question);
  69. int   hts_htmlcheck_loop(lien_back* back,int back_max,int back_index,int lien_tot,int lien_ntot,LLint stat_bytes,LLint stat_bytes_recv,int stat_time,int stat_nsocket,LLint stat_written, int stat_updated, int stat_errors, int irate, int nbk );
  70. int   hts_htmlcheck_check(char* adr,char* fil,int status);
  71. #endif
  72.  
  73. #endif
  74.  
  75.